﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MerchReview.aspx.vb" Inherits="gojira.MerchReview" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1" GridLines="None" 
        ShowHeader="False">
        <Columns>
            <asp:TemplateField>
            <ItemTemplate>
            <p><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' /></p>
            <p>Description <%# Eval("Description")%> </p>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        SelectCommand="SELECT [Picture], [Description], [ID] FROM [Merchandise] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <br />
    Rate this item:
    <br />
    <asp:Rating
        width="200" 
        Height="40" 
        ID="Rating2" 
        runat="server" 
        StarCssClass="ratingStar" 
        WaitingStarCssClass="savedRatingStar" 
        EmptyStarCssClass="emptyRatingStar" 
        filledStarCssClass="filledRatingStar"
        MaxRating="5" 
    >
    </asp:Rating>
    <br />
    <asp:Button ID="brn_rate" runat="server" Text="Rate" />
</asp:Content>
